export interface ListInt {
    id: number,
    nickName: string,
    userName: string,
    role: RoleInt[]
}

export interface RoleInt {
    role: number,
    roleName: string
}

interface SelectDataInt{
    role: number,
    nickName: string
}

export interface RoleListInt {
    roleId: number,
    roleName: string,
    authority: number[],
}

interface ActiveInt {
    id: number,
    nickName: string,
    userName: string,
    role: number[]
}

export class InitData{
    selectData: SelectDataInt = {
        role: 0,
        nickName: ""
    }
    list: ListInt[] = [] // 用户列表
    roleList: RoleListInt[] = [] // 角色列表
    isShow: boolean =  false
    active: ActiveInt = {
        id: 0,
        nickName: "",
        role: [],
        userName: ""
    }
}